import request from '@/utils/request';

// 查询跟进记录列表
export function listFollowRecord(query) {
  return request({
    url: '/system/follow/record/list/bus',
    method: 'get',
    params: query
  });
}

// 查询跟进记录详情
export function getFollowRecord(followRecordId) {
  return request({
    url: '/system/follow/record/' + followRecordId,
    method: 'get'
  });
}

// 新增跟进记录
export function addFollowRecord(data) {
  return request({
    url: '/system/follow/record',
    method: 'post',
    data
  });
}

// 修改跟进记录
export function updateFollowRecord(data) {
  return request({
    url: '/system/follow/record',
    method: 'put',
    data
  });
}

// 删除跟进记录
export function delFollowRecord(followRecordId) {
  return request({
    url: '/system/follow/record/' + followRecordId,
    method: 'delete'
  });
}
